﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<title>用户管理模块</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<!-- basic styles -->
	<link href="__PUBLIC__/assets/css/bootstrap.min.css" rel="stylesheet"/>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/font-awesome.min.css"/>
	<!--[if IE 7]>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/font-awesome-ie7.min.css"/>
	<![endif]-->
	<!-- page specific plugin styles -->
	<!-- fonts -->
	<!-- ace styles -->
	<link rel="stylesheet" href="__PUBLIC__/assets/css/ace.min.css"/>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/ace-rtl.min.css"/>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/ace-skins.min.css"/>
	<!--[if lte IE 8]>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/ace-ie.min.css"/>
	<![endif]-->
	<!-- inline styles related to this page -->
	<!-- ace settings handler -->
	<script src="__PUBLIC__/assets/js/ace-extra.min.js"></script>
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="__PUBLIC__/assets/js/html5shiv.js"></script>
	<script src="__PUBLIC__/assets/js/respond.min.js"></script>
	<![endif]-->
</head>
<body>
<div class="navbar navbar-default" id="navbar">
	<script type="text/javascript">
		try{ace.settings.check('navbar' , 'fixed')}catch(e){}
	</script>
	<div class="navbar-container" id="navbar-container">
		<div class="navbar-header pull-left">
			<a href="#" class="navbar-brand">
				<small><i class="icon-leaf"></i>HC个人博客系统</small>
			</a><!-- /.brand -->
		</div>
		<!-- /.navbar-header -->
		<div class="navbar-header pull-right" role="navigation">
			<ul class="nav ace-nav">
				<li class="light-blue">
					<a data-toggle="dropdown" href="#" class="dropdown-toggle">
				<span class="user-info">
				{$Think.session.username}</span>
						<i class="icon-caret-down"></i>
					</a>
					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li>
							<a href="{:U('User/Grzl')}">
								<i class="icon-user"></i>
								个人资料
							</a>
						</li>
						<li class="divider"></li>
						<li>
							<a href="{:U('Login/logout')}">
								<i class="icon-off"></i>
								退出
							</a>
						</li>
					</ul>
				</li>
			</ul>
			<!-- /.ace-nav -->
		</div>
		<!-- /.navbar-header -->
	</div>
	<!-- /.container -->
</div>
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>
	<div class="main-container-inner">
		<a class="menu-toggler" id="menu-toggler" href="#">
			<span class="menu-text"></span>
		</a>
		<div class="sidebar" id="sidebar">
			<script type="text/javascript">
				try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
			</script>
			<!-- #sidebar-shortcuts -->
			<ul class="nav nav-list">
				<li>
					<a href="{:U('Index/index')}">
						<i class="icon-dashboard"></i>
						<span class="menu-text"> 控制中心 </span>
					</a>
				</li>
				<li class="active open">

					<a href="#" class="dropdown-toggle">
						<i class="icon-text-width"></i>
						<span class="menu-text"> 部员管理 </span>
						<b class="arrow icon-angle-down"></b>
					</a>
					<ul class="submenu">
						<li class="active">
							<a href="{:U('User/yhgl?rid='.$value)}">
								<i class="icon-double-angle-right"></i>
								用户管理
							</a>
						</li>
						<li>
							<a href="{:U('User/Yhzgl?rid='.$value)}">
								<i class="icon-double-angle-right"></i>
								用户组管理
							</a>
						</li>
						<li>
							<a href="{:U('User/Jsgl?rid='.$value)}">
								<i class="icon-double-angle-right"></i>
								角色管理
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="#" class="dropdown-toggle">
						<i class="icon-desktop"></i>
						<span class="menu-text"> 综合统计 </span>
						<b class="arrow icon-angle-down"></b>
					</a>
					<ul class="submenu">
						<li>
							<a href="{:U('Data/Sydhmx?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								所有对话明细
							</a>
						</li>
						<li>
							<a href="{:U('Data/yxdhtj?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								有效对话统计
							</a>
						</li>
						<li>
							<a href="{:U('Data/Xzhf?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								新增回访
							</a>
						</li>
						<li>
							<a href="{:U('Data/Zchf?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								再次回访
							</a>
						</li>
						<li>
							<a href="{:U('Data/yysj?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								预约数据
							</a>
						</li>
						<li>
							<a href="{:U('Data/dzsj?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								到诊数据
							</a>
						</li>
						<li>
							<a href="{:U('Data/zmb?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								组目标
							</a>
						</li>
						<li>
							<a href="{:U('Data/grmb?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								个人目标
							</a>
						</li>
						<li>
							<a href="{:U('Data/hftxlb?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								回访提醒列表
							</a>
						</li>
						<li>
							<a href="{:U('Data/hfgl?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								回访管理
							</a>
						</li>
						<li>
							<a href="{:U('Data/sjhgl?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								手机号管理
							</a>
						</li>
						<li>
							<a href="{:U('Data/Xmtwxhgl?fid='.$value)}">
								<i class="icon-double-angle-right"></i>
								微信号管理
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="#" class="dropdown-toggle">
						<i class="icon-edit"></i>
						<span class="menu-text"> 入院详情 </span>
						<b class="arrow icon-angle-down"></b>
					</a>

					<ul class="submenu">
						<li>
							<a href="{:U('Data/Dzcz?yid='.$value)}">
								<i class="icon-double-angle-right"></i>
								到诊初诊
							</a>
						</li>
						<li>
							<a href="{:U('Data/Czry?yid='.$value)}">
								<i class="icon-double-angle-right"></i>
								初诊入院
							</a>
						</li>
						<li>
							<a href="{:U('Data/Jcls?yid='.$value)}">
								<i class="icon-double-angle-right"></i>
								检查流失
							</a>
						</li>
						<li>
							<a href="{:U('Data/Wjcls?yid='.$value)}">
								<i class="icon-double-angle-right"></i>
								未检查流失
							</a>
						</li>
						<li>
							<a href="{:U('Data/Lhtj?yid='.$value)}">
								<i class="icon-double-angle-right"></i>
								流回统计
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="#" class="dropdown-toggle">
						<i class="icon-file-alt"></i>
						<span class="menu-text">系统信息</span>
						<b class="arrow icon-angle-down"></b>
					</a>
					<ul class="submenu">
						<li>
							<a href="{:U('System/Help')}">
								<i class="icon-double-angle-right"></i>
								帮助文档
							</a>
						</li>
						<li>
							<a href="{:U('System/Detailed')}">
								<i class="icon-double-angle-right"></i>
								系统详细
							</a>
						</li>
					</ul>
				</li>
			</ul>
			<div class="sidebar-collapse" id="sidebar-collapse">
				<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
			</div>
			<script type="text/javascript">
				try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
			</script>
		</div>
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
				</script>
				<ul class="breadcrumb">
					<li>
						<i class="icon-home home-icon"></i>
						<a href="{:U('Index/index')}">首页</a>
					</li>
					<li>部员管理</li>
					<li class="active">用户管理</li>
				</ul>
				<!-- .breadcrumb -->
			</div>
			<div class="page-content">
					<div class="col-xs-12" style="margin-bottom: 3px;margin-left: -12px;">
						<a class="btn btn-default btn-xs" href="{:U('User/addyh')}">添加</a>
						<button class="btn btn-default btn-xs" onclick="test()">刷新</button>
					</div>
				<script>
					function test()
					{
						window.location.reload()//重新刷新本页面
					}
				</script>
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->
						<div class="row">
							<div class="col-xs-12">
								<div class="table-responsive">
									<table id="sample-table-1" class="table table-striped table-bordered table-hover">
										<thead>
										<tr>
											<th class="center">
												<label>
													<input type="checkbox" class="ace"/>
													<span class="lbl"></span>
												</label>
											</th>
											<th>
												id
											</th>
											<th>
												用户名
											</th>
											<th>
												昵称
											</th>
											<th>
												用户组
											</th>
											<th>
												角色
											</th>
											<th>
												状态
											</th>
											<th>
												操作
											</th>
										</tr>
										</thead>
										<tbody>
										<volist  name='list1' id='vo' key="k" >
										<tr>
											<td class="center">
												<label>
													<input type="checkbox" class="ace"/>
													<span class="lbl"></span>
												</label>
											</td>
											<td>{$key}</td>
											<td>{$vo.username}</td>
											<td>{$vo.uname}</td>
											<td>{$vo.roletitle}</td>
											<td>{$vo.title}</td>
											<td>{$vo.ustatus}</td>
											<td>
												<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
													<a class="btn btn-xs btn-success" href="{:U('User/Ck?cid='.$vo['cid'])}">
														查看</i>
													</a>
													<a class="btn btn-xs btn-info" href="{:U('User/Xg?cid='.$vo['cid'])}">
														修改</i>
													</a>
													<a class="btn btn-xs btn-danger" href="{:U('User/Delete?cid='.$vo['cid'])}">
														删除</i>
													</a>
													<button class="btn btn-xs btn-warning">
														禁用</i>
													</button>
												</div>
												<div class="visible-xs visible-sm hidden-md hidden-lg">
													<div class="inline position-relative">
														<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
															<i class="icon-cog icon-only bigger-110"></i>
														</button>
														<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
															<li>
																<a href="#" class="tooltip-info" data-rel="tooltip" title="View">
														<span class="blue">
														<i class="icon-zoom-in bigger-120"></i>
														</span>
																</a>
															</li>
															<li>
																<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
														<span class="green">
														<i class="icon-edit bigger-120"></i>
														</span>
																</a>
															</li>
															<li>
																<a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
														<span class="red">
														<i class="icon-trash bigger-120"></i>
														</span>
																</a>
															</li>
														</ul>
													</div>
												</div>
											</td>
										</tr>
										</volist>
										</tbody>
									</table>
								</div>
								<!-- /.table-responsive -->
							</div>
							<!-- /span -->
						</div>
						<!-- /row -->
						<div class="hr hr-18 dotted hr-double">
						</div>
					</div>
					<!-- /.col -->
				</div>
				<!-- /.row -->
			</div>
			<!-- /.page-content -->
		</div>
		<!-- /.main-content -->
	</div>
	<!-- /.main-container-inner -->
	<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
		<i class="icon-double-angle-up icon-only bigger-110"></i>
	</a>
</div>
<!-- /.main-container -->
<!--[if !IE]> -->
<script type="text/javascript">
	window.jQuery || document.write("<script src='__PUBLIC__/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
	window.jQuery || document.write("<script src='__PUBLIC__/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
	if("ontouchend" in document) document.write("<script src='__PUBLIC__/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="__PUBLIC__/assets/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script src="__PUBLIC__/assets/js/jquery.dataTables.min.js"></script>
<script src="__PUBLIC__/assets/js/jquery.dataTables.bootstrap.js"></script>
<!-- ace scripts -->
<script src="__PUBLIC__/assets/js/ace-elements.min.js"></script>
<script src="__PUBLIC__/assets/js/ace.min.js"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
	jQuery(function($) {
		var oTable1 = $('#sample-table-2').dataTable( {
			"aoColumns": [
				{ "bSortable": false },
				null, null,null, null, null,
				{ "bSortable": false }
			] } );
		$('table th input:checkbox').on('click' , function(){
			var that = this;
			$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
		});
		$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
		function tooltip_placement(context, source) {
			var $source = $(source);
			var $parent = $source.closest('table')
			var off1 = $parent.offset();
			var w1 = $parent.width();
			var off2 = $source.offset();
			var w2 = $source.width();
			if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
			return 'left';
		}
	})
</script>
</body>
</html>